all: compiler

compiler: src/GrammarTest.java
	javac -cp lib/antlr-3.1.3.jar -d classes/ src/*.java

jar: src/GrammarTest.java compiler
	-jar cvmf manifest.mf pascal4j.jar *.stg lib/antlr-3.1.3.jar -C classes classes/* classes/GrammarTest.class

clean:
	@rm -f pascal4j.jar classes/*

.PHONY: clean jar compiler
